package com.sgj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sgj.common.utils.PageUtils;
import com.sgj.gulimall.product.entity.ProductAttrValueEntity;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author guojishen
 * @email 1261550408@qq.com
 * @date 2021-06-11 14:21:46
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存商品属性
     * @param attrValueEntities
     */
    void saveProductAttr(List<ProductAttrValueEntity> attrValueEntities);

    List<ProductAttrValueEntity> baseListForSpu(Long spuId);

    void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> entities);
}

